package com.ruoyi.project.manhua.Enum;

import java.util.HashMap;
import java.util.Map;

public class climb {


    /*爬取网站类型*/
    public enum  Type{

        KUMAN55COM("m.kuman55.com网站","kuman55com"),
        MH7COM("6mh7.com网站","6mh7com"),
        MH160XYZ("mh160.xyz网站","mh160xyz"),
        ZHWSXXCOM("zhwsxx.com网站","zhwsxxCom"),
        GUFENGMH8COM("gufengmh8.com网站","gufengmh8com");

        private String key;

        private String value;


        public String getKey() {
            return key;
        }

        public String getValue() {
            return value;
        }

        Type(String key, String value) {
            this.key = key;
            this.value = value;
        }

        /*返回所有类型*/
        public static Map<String,String> toAll(){
            Map<String,String> map = new HashMap<>();
            for (Type type : Type.values()){
                map.put(type.getKey(),type.getValue());
            }
            return map;
        }

    }

}
